import { axios as request  } from '@/utils/request'
import qs from 'qs'

export function getList({params}) {
  return request({
    url: 'api/app/order/wait-complete?' + qs.stringify(params, {indices: false, encode: false}),
    method: 'get'
  })
}

export function getCanComplete(ids) {
  return request({
    url: 'api/app/order/complete/together?' + qs.stringify(ids, {indices: false, encode: false}),
    method: 'get'
  })
}

export function cancel(data) {
  return request({
    url: '',
    method: 'post',
    data
  })
}

export function getDetail(id) {
  return request({
    url: `api/app/order/complete/${id}`,
    method: 'get'
  })
}
export function getFinanceCheckSummary(data) {
  return request({
    url: `/api/finance/getFinanceCheckSummary`,
    method: 'post',
    data
  })
}
